/// code : 200
/// msg : "操作成功"
/// time : 1761717235
/// data : {"data_type":"corp_list","corp_list":[{"corp_name":"llt","corp_code":550145},{"corp_name":"「官方」简信软件","corp_code":100001},{"corp_name":"CRM客户管理系统旗舰版","corp_code":988069},{"corp_name":"简信-邯郸数转","corp_code":668653},{"corp_name":"简信-东莞测评","corp_code":878570}],"is_multiple":1}

class HomeListData {
  HomeListData({
      num? code, 
      String? msg, 
      num? time, 
      HomeListItemData? data,}){
    _code = code;
    _msg = msg;
    _time = time;
    _data = data;
}

  HomeListData.fromJson(dynamic json) {
    _code = json['code'];
    _msg = json['msg'];
    _time = json['time'];
    _data = json['data'] != null ? HomeListItemData.fromJson(json['data']) : null;
  }
  num? _code;
  String? _msg;
  num? _time;
  HomeListItemData? _data;
HomeListData copyWith({  num? code,
  String? msg,
  num? time,
  HomeListItemData? data,
}) => HomeListData(  code: code ?? _code,
  msg: msg ?? _msg,
  time: time ?? _time,
  data: data ?? _data,
);
  num? get code => _code;
  String? get msg => _msg;
  num? get time => _time;
  HomeListItemData? get data => _data;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = _code;
    map['msg'] = _msg;
    map['time'] = _time;
    if (_data != null) {
      map['data'] = _data?.toJson();
    }
    return map;
  }

}

/// data_type : "corp_list"
/// corp_list : [{"corp_name":"llt","corp_code":550145},{"corp_name":"「官方」简信软件","corp_code":100001},{"corp_name":"CRM客户管理系统旗舰版","corp_code":988069},{"corp_name":"简信-邯郸数转","corp_code":668653},{"corp_name":"简信-东莞测评","corp_code":878570}]
/// is_multiple : 1

class HomeListItemData {
  HomeListItemData({
      String? dataType, 
      List<CorpList>? corpList, 
      num? isMultiple,}){
    _dataType = dataType;
    _corpList = corpList;
    _isMultiple = isMultiple;
}

  HomeListItemData.fromJson(dynamic json) {
    _dataType = json['data_type'];
    if (json['corp_list'] != null) {
      _corpList = [];
      json['corp_list'].forEach((v) {
        _corpList?.add(CorpList.fromJson(v));
      });
    }
    _isMultiple = json['is_multiple'];
  }
  String? _dataType;
  List<CorpList>? _corpList;
  num? _isMultiple;
HomeListItemData copyWith({  String? dataType,
  List<CorpList>? corpList,
  num? isMultiple,
}) => HomeListItemData(  dataType: dataType ?? _dataType,
  corpList: corpList ?? _corpList,
  isMultiple: isMultiple ?? _isMultiple,
);
  String? get dataType => _dataType;
  List<CorpList>? get corpList => _corpList;
  num? get isMultiple => _isMultiple;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['data_type'] = _dataType;
    if (_corpList != null) {
      map['corp_list'] = _corpList?.map((v) => v.toJson()).toList();
    }
    map['is_multiple'] = _isMultiple;
    return map;
  }

}

/// corp_name : "llt"
/// corp_code : 550145

class CorpList {
  CorpList({
      String? corpName, 
      num? corpCode,}){
    _corpName = corpName;
    _corpCode = corpCode;
}

  CorpList.fromJson(dynamic json) {
    _corpName = json['corp_name'];
    _corpCode = json['corp_code'];
  }
  String? _corpName;
  num? _corpCode;
CorpList copyWith({  String? corpName,
  num? corpCode,
}) => CorpList(  corpName: corpName ?? _corpName,
  corpCode: corpCode ?? _corpCode,
);
  String? get corpName => _corpName;
  num? get corpCode => _corpCode;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['corp_name'] = _corpName;
    map['corp_code'] = _corpCode;
    return map;
  }

}